package com.fescoservice.model;



/**
 * TSeekerExpectationId entity. @author MyEclipse Persistence Tools
 */

public class SeekerExpectationId  implements java.io.Serializable {


    // Fields    

     private String language;
     private Long userId;


    // Constructors

    /** default constructor */
    public SeekerExpectationId() {
    }

    
    /** full constructor */
    public SeekerExpectationId(String language, Long userId) {
        this.language = language;
        this.userId = userId;
    }

   
    // Property accessors

    public String getLanguage() {
        return this.language;
    }
    
    public void setLanguage(String language) {
        this.language = language;
    }

    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof SeekerExpectationId) ) return false;
		 SeekerExpectationId castOther = ( SeekerExpectationId ) other; 
         
		 return ( (this.getLanguage()==castOther.getLanguage()) || ( this.getLanguage()!=null && castOther.getLanguage()!=null && this.getLanguage().equals(castOther.getLanguage()) ) )
 && ( (this.getUserId()==castOther.getUserId()) || ( this.getUserId()!=null && castOther.getUserId()!=null && this.getUserId().equals(castOther.getUserId()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getLanguage() == null ? 0 : this.getLanguage().hashCode() );
         result = 37 * result + ( getUserId() == null ? 0 : this.getUserId().hashCode() );
         return result;
   }   





}